package com.tianxiabuyi.model.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "label")
public class Label extends TXBYObject {
    public String name;        // 标签、主题名字
    public String content;     // 标签主题描述
    public String author;	   // 创建人
    @Column(name = "author_id")@JSONField(name = "author_id")
    public String authorId;   // 创建人的id
    public Integer parent;     // 是否是顶级类型
    public Integer queue;      // 队列顺序
    public Integer type;       // 本类型区分（新闻下的各类型）
    @Column(name = "type_name")@JSONField(name = "type_name")
    public String typeName;    // 类型名称
    public Integer category;   // 大类型区分
    @Column(name = "category_name")@JSONField(name = "category_name")
    public String categoryName;// 大类型名称
    public Integer branch;     // 医院下分支
    @Column(name = "branch_name")@JSONField(name = "branch_name")
    public String branchName;  // 分支描述
    public String icon;        // 图标
    public Integer enable;     // 是否启用

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public Integer getQueue() {
        return queue;
    }

    public void setQueue(Integer queue) {
        this.queue = queue;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getBranch() {
        return branch;
    }

    public void setBranch(Integer branch) {
        this.branch = branch;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

}
